[Grails] HibernateException: No session currently bound to execution context

Posted by user289206 on Stack Overflow See other posts from Stack Overflow or by user289206
Published on 2010-03-08T22:30:58Z Indexed on 2010/03/08 22:36 UTC
Read the original article Hit count: 150

Filed under:
|
|

I'm trying to create a very basic REST-ish web service with Grails and Postgres. I have the read() & delete() methods working, but I can't get create() to work. Hibernate just gripes, "HibernateException: No session currently bound to execution context." Here's my create method:

def create = {
  def member = new Member(params)
  member.save()
  render(status: 201)
}

Any advice would be great. Thanks.

© Stack Overflow or respective owner

Related posts about grails

Related posts about hibernate